﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.Models
{
    /// <summary>
    /// 应收应付表
    /// </summary>
    public partial class Arap
    {
        public System.Guid Id { get; set; }
        public System.Guid OrderId { get; set; }
        /// <summary>
        /// type=1:发票对账id   type=2:采购的PurchaseReconciliation Id
        /// </summary>
        public System.Guid FinanceInvoiceId { get; set; }
        /// <summary>
        /// -1:未审核 1：审核成功
        /// </summary>
        public int Status { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public string CreatorName { get; set; }
        public Nullable<System.DateTime> CreateTime { get; set; }
        public System.DateTime ApplyTime { get; set; }
        /// <summary>
        /// 应收（付）金额
        /// </summary>
        public decimal ShouldMoney { get; set; }
        /// <summary>
        /// 实际收（付）金额
        /// </summary>
        public decimal ActualMoney { get; set; }
        /// <summary>
        /// 1:应收  2：应付
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 采购Id
        /// </summary>
        public Nullable<System.Guid> PurchaseComposeId { get; set; }
        /// <summary>
        /// 发票号
        /// </summary>
        public string FinanceNumber { get; set; }
        /// <summary>
        /// 应收总额
        /// </summary>
        public decimal TotalMoney { get; set; }
        /// <summary>
        /// 0:开发票  1：不开
        /// </summary>
        public int InvoiceType { get; set; }

        [NotMapped]
        public string Data { get; set; }
    }
}
